class Admin::ShopsController < Admin::BaseController
  def index
  	 @cats = ItemCategory.cat1.to_json(ItemCategory::ALL_OUTPUT_HASH)
  	 @shops = Shop.admin_search(params).paginate :page => params[:page],:per_page => ADMIN_PER_PAGE
  	 @params = return_params
  end
  
  private
  def return_params
    {:shop_id => params[:shop_id],
      :shop_title => params[:shop_title],
      :cat1_id => params[:cat1_id],
      :cat2_id => params[:cat2_id],
      :cat3_id => params[:cat3_id],
    }
  end

end
